package com.zqxq.lottery.service.order;

import com.baomidou.mybatisplus.service.IService;
import com.zqxq.lottery.entity.po.order.UserOrderPO;
import com.zqxq.lottery.entity.po.sys.LotteryHnumPO;
import java.util.List;

/**
 * 说    明：  开奖计算
 * 创 建 人：	一刀·胡
 * 创建时间：	2018/7/1 22:07
 * 修 改 人：
 * 修改日期：
 **/
public interface IBonusCalcService extends IService<UserOrderPO>{

    void updateCalcUserOrders21(List<UserOrderPO> list);

    void updateCalcUserOrders24(List<UserOrderPO> list);

    void updateCalcUserOrders210(List<UserOrderPO> list);

    void updateCalcUserOrders10(List<UserOrderPO> list);

    void updateCalcUserOrders(List<UserOrderPO> orderList,LotteryHnumPO lotteryNum);

    List<UserOrderPO> queryDigitOrderForCal(Long lotteryId, String period);

    List<UserOrderPO> query21OrderForCal(Long start,Long end);

    List<UserOrderPO> query24OrderForCal(Long start,Long end);

    List<UserOrderPO> query210OrderForCal(Long start,Long end);

    List<UserOrderPO> query10OrderForCal(Long start,Long end);

    Long getMaxOrderId21();

    Long getMaxOrderId24();

    Long getMaxOrderId210();

    Long getMaxOrderId10();

    boolean updateOrderForPrize(UserOrderPO order);

    List<UserOrderPO> queryOrderForPrize(Long lotteryId);

    List<UserOrderPO> queryNotOpenPrizeOrder();

}
